import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import ElementUI from 'element-ui'
//统一各浏览器的默认样式
import 'normalize.css/normalize.css'
//默认样式
import './assets/css/reset.css'
//axios封装
axios.defaults.headers["Content-Type"] = 'application/json';
axios.interceptors.request.use((config) => {
<<<<<<< HEAD
  let info=localStorage.getItem("erabbit-client-pc-124-store")
  if(info){
    config.headers.Authorization = JSON.parse(info).user.profile.token
  }
  return config;
})
=======
 config.headers.Authorization = `eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ7XCJuYW1lXCI6XCJEaWRcIixcImlkXCI6XCIxMzY5NTk0OTU0NzM5ODU5NDU4XCIsXCJ1c2VybmFtZVwiOlwieGlhb3R1eGlhbjAwMVwifSIsImlhdCI6MTY2MjM2ODQyOSwiZXhwIjoxNjYyNjI3NjI5fQ.879QsvtC58sYZMozaUk1UI8VE1MerPvQGF6eGUt_l08`;
 return config;
});
>>>>>>> ysh
axios.defaults.baseURL = 'https://apipc-xiaotuxian-front.itheima.net'
// axios请求
Vue.prototype.$axios = axios

/**引入element-ui组件*/
Vue.use(ElementUI)
import 'element-ui/lib/theme-chalk/index.css'
//挂载mock
require('./mock/mock')
// 公共样式

import VueLazyload from 'vue-lazyload'; //图片懒加载
Vue.use(VueLazyload); 


Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
